package arrival;

import dbhandler.*;
import common.ImagePanel;
import java.util.ArrayList;

/**
 *
 * @author Casper, Dennis, Jackie, Jakob
 * @version 1.00
 */
public class AddCompanyDialog extends javax.swing.JDialog {

    private Company company;

    /**
     * Creates new form AddGuestDialog
     * @param parent
     * @param modal
     */
    public AddCompanyDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        company = new Company();
        initComponents();
        renderData();
    }

    /**
     *
     * @return
     */
    public Company returnCompany() {
        setVisible(true);
        return company;
    }

    private void renderData() {
        ArrayList<Country> countryList = new Country().getCountries();
        for (int i = 0; i < countryList.size(); i++) {
            countryBox.addItem(countryList.get(i));
        }
    }

    private void setCompany() {
        company.setCompanyName(companyNameFld.getText());
        company.setCompanyPhone(companyPhoneFld.getText());
        company.setCompanyEmail(renderEmail());

        // Country
        String tempCity = cityFld.getText();
        String tempCity1 = tempCity.substring(0, 1).toUpperCase();
        String tempCity2 = tempCity.substring(1, tempCity.length()).toLowerCase();
        String cityName = tempCity1 + tempCity2;
        Country country = (Country) countryBox.getSelectedItem();

        // City
        City city = new City();
        boolean isFound = false;
        ArrayList<City> cities = city.getCities();
        for (int i = 0; i < cities.size(); i++) {
            if (cities.get(i).getZip().equals(country.getCountryCode() + zipFld.getText())) {
                city = new City(country.getCountryCode() + zipFld.getText());
                isFound = true;
            }
        }
        if (!isFound) {
            city = new City();
            city.setName(cityName);
            city.setZip(country.getCountryCode() + zipFld.getText());
            city.insert();
            city = new City(country.getCountryCode() + zipFld.getText());
        }

        // Address
        Address address = new Address();
        address.setState(stateFld.getText());
        address.setStreetName(streetNameFld.getText());
        address.setStreetNo(streetNoFld.getText());
        address.setCity(city);
        address.setCountry(country);
        address.insert();

        company.setAddress(address);
        company.insert();
    }

    private String renderEmail() {
        return emailNameFld.getText() + "@" + emailDomainFld.getText() + "." + emailExtFld.getText();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        infoPnl = new javax.swing.JPanel();
        companyNameLbl = new javax.swing.JLabel();
        companyNameFld = new javax.swing.JTextField();
        emailLbl = new javax.swing.JLabel();
        dotLbl = new javax.swing.JLabel();
        emailDomainFld = new javax.swing.JTextField();
        atLbl = new javax.swing.JLabel();
        emailNameFld = new javax.swing.JTextField();
        emailExtFld = new javax.swing.JTextField();
        companyPhoneFld = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        addressPnl = new javax.swing.JPanel();
        streetNameLbl = new javax.swing.JLabel();
        streetNameFld = new javax.swing.JTextField();
        streetNoLbl = new javax.swing.JLabel();
        streetNoFld = new javax.swing.JTextField();
        zipLbl = new javax.swing.JLabel();
        zipFld = new javax.swing.JTextField();
        stateLbl = new javax.swing.JLabel();
        stateFld = new javax.swing.JTextField();
        cityLbl = new javax.swing.JLabel();
        cityFld = new javax.swing.JTextField();
        countryLbl = new javax.swing.JLabel();
        countryBox = new javax.swing.JComboBox();
        logoPnl = new javax.swing.JPanel();
        saveBtn = new javax.swing.JButton();
        cancelBtn = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Hotel Lazy BMS - Add Company");

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));

        infoPnl.setBackground(new java.awt.Color(255, 255, 255));
        infoPnl.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "General Info", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("DejaVu Sans", 1, 13))); // NOI18N

        companyNameLbl.setFont(companyNameLbl.getFont());
        companyNameLbl.setText("Company Name");

        companyNameFld.setFont(companyNameFld.getFont());

        emailLbl.setFont(emailLbl.getFont());
        emailLbl.setText("Email");

        dotLbl.setFont(dotLbl.getFont());
        dotLbl.setText(".");

        emailDomainFld.setFont(emailDomainFld.getFont());

        atLbl.setFont(atLbl.getFont());
        atLbl.setText("@");

        emailNameFld.setFont(emailNameFld.getFont());

        emailExtFld.setFont(emailExtFld.getFont());

        companyPhoneFld.setFont(companyPhoneFld.getFont());

        jLabel1.setFont(jLabel1.getFont());
        jLabel1.setText("Company Phone");

        javax.swing.GroupLayout infoPnlLayout = new javax.swing.GroupLayout(infoPnl);
        infoPnl.setLayout(infoPnlLayout);
        infoPnlLayout.setHorizontalGroup(
            infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(infoPnlLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, infoPnlLayout.createSequentialGroup()
                        .addComponent(emailLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(emailNameFld, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(atLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(emailDomainFld, javax.swing.GroupLayout.DEFAULT_SIZE, 270, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dotLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(emailExtFld, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(infoPnlLayout.createSequentialGroup()
                        .addGroup(infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(companyNameLbl)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(companyPhoneFld, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(companyNameFld, javax.swing.GroupLayout.DEFAULT_SIZE, 584, Short.MAX_VALUE))))
                .addContainerGap())
        );
        infoPnlLayout.setVerticalGroup(
            infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(infoPnlLayout.createSequentialGroup()
                .addGroup(infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(companyNameFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(companyNameLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(companyPhoneFld, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(infoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(emailLbl)
                    .addComponent(emailNameFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(emailDomainFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dotLbl)
                    .addComponent(emailExtFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(atLbl)))
        );

        addressPnl.setBackground(new java.awt.Color(255, 255, 255));
        addressPnl.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Address", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("DejaVu Sans", 1, 13))); // NOI18N

        streetNameLbl.setFont(streetNameLbl.getFont());
        streetNameLbl.setText("Street");

        streetNameFld.setFont(streetNameFld.getFont());

        streetNoLbl.setFont(streetNoLbl.getFont());
        streetNoLbl.setText("No.");

        streetNoFld.setFont(streetNoFld.getFont());

        zipLbl.setFont(zipLbl.getFont());
        zipLbl.setText("Zip");

        zipFld.setFont(zipFld.getFont());

        stateLbl.setFont(stateLbl.getFont());
        stateLbl.setText("State");

        stateFld.setFont(stateFld.getFont());

        cityLbl.setFont(cityLbl.getFont());
        cityLbl.setText("City");

        cityFld.setFont(cityFld.getFont());

        countryLbl.setFont(countryLbl.getFont());
        countryLbl.setText("Country");

        countryBox.setFont(countryBox.getFont());

        javax.swing.GroupLayout addressPnlLayout = new javax.swing.GroupLayout(addressPnl);
        addressPnl.setLayout(addressPnlLayout);
        addressPnlLayout.setHorizontalGroup(
            addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addressPnlLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(zipLbl)
                    .addComponent(streetNameLbl)
                    .addComponent(countryLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(addressPnlLayout.createSequentialGroup()
                        .addComponent(streetNameFld, javax.swing.GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(streetNoLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(streetNoFld, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(addressPnlLayout.createSequentialGroup()
                        .addComponent(zipFld, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(stateLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(stateFld, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cityLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cityFld, javax.swing.GroupLayout.DEFAULT_SIZE, 415, Short.MAX_VALUE))
                    .addComponent(countryBox, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        addressPnlLayout.setVerticalGroup(
            addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addressPnlLayout.createSequentialGroup()
                .addGroup(addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(streetNameLbl)
                    .addComponent(streetNameFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(streetNoLbl)
                    .addComponent(streetNoFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(zipLbl)
                    .addComponent(zipFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(stateLbl)
                    .addComponent(stateFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cityLbl)
                    .addComponent(cityFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(addressPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(countryLbl)
                    .addComponent(countryBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        logoPnl.setBackground(new java.awt.Color(211, 211, 211));
        logoPnl.setMinimumSize(new java.awt.Dimension(100, 50));
        logoPnl.setPreferredSize(new java.awt.Dimension(100, 50));

        javax.swing.GroupLayout logoPnlLayout = new javax.swing.GroupLayout(logoPnl);
        logoPnl.setLayout(logoPnlLayout);
        logoPnlLayout.setHorizontalGroup(
            logoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        logoPnlLayout.setVerticalGroup(
            logoPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 50, Short.MAX_VALUE)
        );

        saveBtn.setText("Save");
        saveBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveBtnActionPerformed(evt);
            }
        });

        cancelBtn.setText("Cancel");
        cancelBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelBtnActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 786, Short.MAX_VALUE)
                            .addComponent(logoPnl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap())
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addComponent(infoPnl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(132, 132, 132))
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(addressPnl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(132, 132, 132)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(cancelBtn)
                        .addGap(4, 4, 4)
                        .addComponent(saveBtn)
                        .addContainerGap())))
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {cancelBtn, saveBtn});

        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(logoPnl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(infoPnl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(addressPnl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cancelBtn)
                    .addComponent(saveBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        logoPnl.add(new ImagePanel("logo.png"));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cancelBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelBtnActionPerformed
        dispose();
    }//GEN-LAST:event_cancelBtnActionPerformed

    private void saveBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveBtnActionPerformed
        setCompany();
        dispose();
    }//GEN-LAST:event_saveBtnActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                AddCompanyDialog dialog = new AddCompanyDialog(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel addressPnl;
    private javax.swing.JLabel atLbl;
    private javax.swing.JButton cancelBtn;
    private javax.swing.JTextField cityFld;
    private javax.swing.JLabel cityLbl;
    private javax.swing.JTextField companyNameFld;
    private javax.swing.JLabel companyNameLbl;
    private javax.swing.JTextField companyPhoneFld;
    private javax.swing.JComboBox countryBox;
    private javax.swing.JLabel countryLbl;
    private javax.swing.JLabel dotLbl;
    private javax.swing.JTextField emailDomainFld;
    private javax.swing.JTextField emailExtFld;
    private javax.swing.JLabel emailLbl;
    private javax.swing.JTextField emailNameFld;
    private javax.swing.JPanel infoPnl;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel logoPnl;
    private javax.swing.JButton saveBtn;
    private javax.swing.JTextField stateFld;
    private javax.swing.JLabel stateLbl;
    private javax.swing.JTextField streetNameFld;
    private javax.swing.JLabel streetNameLbl;
    private javax.swing.JTextField streetNoFld;
    private javax.swing.JLabel streetNoLbl;
    private javax.swing.JTextField zipFld;
    private javax.swing.JLabel zipLbl;
    // End of variables declaration//GEN-END:variables
}
